//
//  XLImageAndTitleButton.h
//  campus
//
//  Created by xl on 2019/11/15.
//  Copyright © 2019 xl. All rights reserved.
//

#import "XLButton.h"

typedef NS_ENUM(NSInteger, XLImageRelativeTitlePosition) {
    XLImageRelativeTitlePositionLeft,
    XLImageRelativeTitlePositionRight,
    XLImageRelativeTitlePositionTop,
    XLImageRelativeTitlePositionBottom
};

@interface XLImageAndTitleButton : XLButton

/**
 @param frame 位置
 @param imageSize 图片size
 @param imageAndTitleSpace 图片文字间距
 @param imageRelativeTitlePosition 图片相对文字位置
 @return 对象
 */
- (instancetype)initWithFrame:(CGRect)frame
                    imageSize:(CGSize)imageSize
           imageAndTitleSpace:(CGFloat)imageAndTitleSpace
   imageRelativeTitlePosition:(XLImageRelativeTitlePosition)imageRelativeTitlePosition;

@end



